SHELL = @SHELL@
F90   = @F90@
LIBS  = @LIBS@
MPIRUN= @MPIRUN@
NP_ARG= @NP_ARG@

PROGRAMS = pi3 pit matvec matmat matmatlog

SOURCES  = pi3.f90 pit.f90 matvec.f90 matmat.f90 matmatlog.f90

all: ${PROGRAMS}

clean:
	rm -f *.o ${PROGRAMS} *~

.SUFFIXES: .o .f90
.f90:
	${F90} ${F90FLAGS} -o $* $< ${LIBS}
.f90.o:
	${F90} ${F90FLAGS} -c $<

matmatlog: matmatlog.o
	${F90} ${F90FLAGS} -o matmatlog matmatlog.o -lmpe ${LIBS}

sources:
	@echo ${SOURCES}
